import Request from '@/utils/request'

export function bannerAdminList(params) {
    return Request.get(
        'banner/admin/list',
        params
    )
}

export function bannerList(params) {
    return Request.get(
        'banner/list',
        params
    )
}

export function bannerDetail(banner_id,params) {
    return Request.get(
        `banner/list/${banner_id}`,
        params
    )
}

export function bannerAdd(params) {
    return Request.post(
        'banner/add',
        params
    )
}

export function bannerDelete(banner_id) {
    return Request.delete(
        `banner/edit/${banner_id}`,
    )
}

export function bannerEdit(banner_id,params) {
    return Request.put(
        `banner/edit/${banner_id}`,
        params
    )
}
